package com.ostrich.demobrvah.divider

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.ostrich.demobrvah.R

/**
 * @Author : yaotianxue
 * @Time : On 2023/10/31 09:07
 * @Description : MyAdapter
 */
class MyAdapter(val layoutId:Int,val list:MutableList<DataBean>)
    :BaseQuickAdapter<DataBean,BaseViewHolder>(layoutId,list) {
    override fun convert(holder: BaseViewHolder, item: DataBean) {
        holder.setText(R.id.tv,"${holder.layoutPosition}")
    }
}